import pygame
import sys

#Iniciar pygame
pygame.init()

# Configurar la ventana
ancho = 500
alto = 400
ventana = pygame.display.set_mode((ancho, alto))
pygame.display.set_caption('Hola Mundo!')


# Bucle de eventos
while True:
for event in pygame.event.get():
    if event.type == pygame.QUIT:
        pygame.quit()
        sys.exit()
